package com.gitee.yannzh.rune.support.fs.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gitee.yannzh.rune.support.crud.constants.ViewType;
import lombok.Data;

/**
 * @author Yann
 * @date 2025/4/17 15:45
 * @description
 * @since 1.0.0
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Data
public class Form {

    private String title;
    private String desc;
    private Boolean show;
    private Boolean readonly;
    private Integer order;
    private String type;


    /**
     * flex模式：通过a-col/el-col分栏组件控制字段布局
     * grid模式：通过display:grid样式来控制字段布局
     * 默认：flex
     */
    private String display;

    /**
     * 默认：{span:12} 一行显示两个字段，分两列布局（如果配置{span:24}，则为单列布局）
     */
    private Col col;

    private Row row;


    private Wrapper wrapper;
}
